package cn.wzptsoft.tinymallbe.repository;

import cn.wzptsoft.tinymallbe.entity.Category;
import cn.wzptsoft.tinymallbe.entity.Theme;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface CategoryRepository extends JpaRepository<Category,Long> {
   List<Category> findByIsRootOrderBySortAsc(Boolean isRoot);

   List<Category> findByParentId(Long categoryId);
}
